public class Animal {
    String name;
    int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println(name + this.age+ "正在吃饭");
    }
    public void sleep() {
        System.out.println(name + this.age +"正在睡觉");
    }

    public static void main(String[] args) {

    }
}
